<!--{include file='./publish_header.htm'}-->
<div class="container">
  <div class="row">
    <div class="span8">
      <form class="form-horizontal" action="/qqgroup/publish" method="post" enctype="multipart/form-data" id="form_userregister">
        <input type="hidden" name="{$smarty.const.FORM_HASH}" id="form_seed" value="{$form->form_seed}" />
        <fieldset>
          <legend>发布QQ群</legend>
          <div class="control-group">
            <label class="control-label" for="inputQQGroupNo">QQ群号码</label>
            <div class="controls">
              <input type="text" name="number" id="inputQQGroupNo" placeholder="QQ群号码" />
              <span class="help-inline">{$error->number}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputQQGroupName">QQ群名称</label>
            <div class="controls">
              <input type="text" name="name" id="inputQQGroupName" placeholder="QQ群名称" />
              <span class="help-inline">{$error->name}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputQQGroupCat">QQ群分类</label>
            <div class="controls">
              <select type="text" name="category" id="inputQQGroupCat">
                <!--{foreach $qgcats as $item}-->
                <option value="{$item->id}" {if $item@first} selected="selected"{/if}>{$item->catname}</option>
                <!--{/foreach}-->
              </select>
              <span class="help-inline">{$error->category}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputverifypwd">QQ群验证答案</label>
            <div class="controls">
              <input type="text" name="verifypwd" id="inputverifypwd" placeholder="验证答案" />
              <span class="help-inline">{$error->verifypwd}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputMaster">群主</label>
            <div class="controls">
              <input type="text" name="master" id="inputMaster" placeholder="群主称呼" />
              <span class="help-inline">{$error->master}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputMasterQQ">群主QQ号</label>
            <div class="controls">
              <input type="text" name="masterqq" id="inputMasterQQ" placeholder="群主QQ号码" />
              <span class="help-inline">{$error->masterqq}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label">QQ群区域</label>
            <div class="controls controls-row">
              <select class="input-small" id="sel_prv" name="province">
                <!--{foreach $prvs as $item}-->
                <option value="{$item->id}" {if $item@first} selected="selected"{/if}>{$item->name}</option>
                <!--{/foreach}-->
              </select>
              <select class="input-small" id="sel_city" name="city">
              </select>
              <select class="input-small" id="sel_district" name="district">
              </select>
              <span class="help-inline">{$error->location}</span>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label">QQ群宣传海报</label>
            <div class="controls">
              <a id="upbtn" href="javascript:;" class="btn btn-info btn-small">上传图片</a>
              <div id="pic_upload" class="thumbnail-box">
                <!--{if !empty($img)}-->
                <img class="img-polaroid" src="{$img}" />
                <!--{/if}-->
              </div>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="taIntro">QQ群简介</label>
            <div class="controls">
              <textarea class="span3" rows="4" id="taIntro" name="intro"></textarea>
            </div>
          </div>
          <div class="control-group">
            <div class="controls">
              <button id="form-submit" type="button" class="btn">发布</button>
              <button type="reset" class="btn">清空</button>
            </div>
          </div>
        </fieldset>
      </form>
    </div>
    <div class="span4"></div>
  </div>
</div>
<!--{include file='./publish_footer.htm'}-->